package com.itheima.mall.service.smsService;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.pojo.sms.SmsFlashPromotionProductRelation;

import java.util.List;

public interface SmsFlashPromotionProductRelationServiceApi {

   //批量选择商品添加关联
    void addFlashProductRelation(SmsFlashPromotionProductRelation smsFlashPromotionProductRelation);
    //删除商品关联
    void deleteFlashProductRelation(Integer id);
    //分页查询不同场次关联及商品信息
    List<SmsFlashPromotionProductRelation> list(IPage page, Integer flashPromotionId, Integer flashPromotionSessionId);
    //修改关联信息
    void update(Long id, SmsFlashPromotionProductRelation smsFlashPromotionProductRelation);
    //获取管理商品促销信息
    SmsFlashPromotionProductRelation selectProductionMessage(Long id);
    //根据id查询
    List<SmsFlashPromotionProductRelation> selectList(Long flashPromotionId);
    //获取商品数
    Integer getProductCount(Long flashPromotionId, Long id);
}

